package edu.fdzc.springboot01.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.fdzc.springboot01.entity.User;
import edu.fdzc.springboot01.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    UserVo selectUserWithDept(@Param("id") Integer id);
    List<UserVo> selectUsersWithDeptByDeptId(@Param("deptId") Integer deptId);
    List<UserVo> selectAllUsersWithDept();

    // 新增批量删除方法
    int batchDeleteUser(List<Integer> ids);
}